package com.niit.drugsmanager.service;

import com.niit.drugsmanager.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface UserService {

    User createUser(User user);
    User getUser(String email, String password);
    User getUserById(Long id);
    Page<User> findUsers(String search, Pageable pageable);
    boolean removeUser(Long id);
    User updatePermissionAndRole(Long uid, Integer permission, Integer role);
}
